package com.dhn.service.Impl;

import com.dhn.entity.Sys_roles;
import com.dhn.mapper.Sys_rolesMapper;
import com.dhn.service.Sys_rolesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class Sys_rolesServiceImpl implements Sys_rolesService {
    @Autowired
    private Sys_rolesMapper sys_rolesMapper;
    @Override
    public List<Sys_roles> getSys_roles(Sys_roles sys_roles) {
        return sys_rolesMapper.getSys_roles(sys_roles);
    }

    @Override
    public int getTotal(Sys_roles sys_roles) {
        return sys_rolesMapper.getTotal(sys_roles);
    }
}
